package com.zhouxiaoge.feign;

import com.zhouxiaoge.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-05-02 13:31
 */

@FeignClient("user-provider-1")
public interface UserFeignClient {

    @RequestMapping(value = "/simple/{id}", method = RequestMethod.GET)
    User findById(@PathVariable("id") Long id);

}
